package cn.webrx.wxs.mapper;

import cn.webrx.wxs.entity.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    Order selectByPrimaryKey(Integer id);

    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    @Select("select count(*) from ws_order where del=0 and pay_status=1")
    public int order();
}